﻿@model ITSTOREBLL.DonHang

@{
    ViewBag.Title = "QuanLyDonHangEdit";
    Layout = "~/Views/Shared/_Layout_admin.cshtml";
}

<h2>Cập nhật đơn hàng</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
           <table style="width: 100%;">
               <tr>
                   <td style="width: 150px">
                      Mã đơn hàng
                   </td>
                   <td>
                       @Html.DisplayFor(model => model.dh_MaDonHang)
                   </td>
               </tr>
               <tr>
                   <td>
                       Giá
                   </td>
                   <td>
                       @Html.DisplayFor(model => model.dh_Gia)
                   </td>
               </tr>
               <tr>
                   <td>
                       Số lượng
                   </td>
                   <td>
                        @Html.DisplayFor(model => model.dh_SoLuong)
                   </td>
               </tr>
               <tr>
                   <td>
                       Tài khoản
                   </td>
                   <td>
                        @Html.DisplayFor(model => model.dh_TaiKhoan)
                   </td>
               </tr>
               <tr>
                   <td>
                       Ngày
                   </td>
                   <td>
                        @Html.DisplayFor(model => model.dh_Ngay)
                   </td>
               </tr>
               <tr>
                   <td>
                       Trạng thái
                   </td>
                   <td>
                        @Html.DropDownList("dh_TrangThai")
                        @Html.ValidationMessageFor(model => model.dh_TrangThai)
                   </td>
               </tr>
           </table>
        <p>
            <input type="submit" value="Lưu" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Quay lại", "QuanLyDonHang/Index")
</div>
